package com.ftg.learn.framework.mybatis.mybatisinterface;

import com.ftg.learn.framework.mybatis.mybatisinterface.entity.StudentEntity;
import com.ftg.learn.framework.mybatis.mybatisinterface.service.StudentService;

/**
 * 注解开发模式，接口+注解
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/9/1 上午8:55
 */
public class Demo02 {

    public static void main(String[] args) {

        StudentService studentService = new StudentService();

        StudentEntity se = new StudentEntity();
        se.setId(250);
        se.setStu_name("娟姐");
        se.setStu_sex("男");
        se.setClassno(1001);
        se.setXueli("博士");
        se.setMgr(0);

        int n = studentService.updateStu(se,99);
        System.out.println(n);

        System.out.println(studentService.findOne("娟姐"));
    }


}
